#!/usr/bin/env python
# encoding: utf-8
"""
analytics.py

Created by Bud Gibson on 2010-06-23.
Copyright (c) 2010 Bud Gibson. Available under the GPL/Artistic License.
"""

def sort_displayName(x,y):
  """sort a list of profiles or profile stubs by display name"""
  return(cmp(x['displayName'].lower(),y['displayName'].lower()))

def main():
  from construct_graph import base_graph
  import pprint
  pp = pprint.PrettyPrinter(depth=2)
  people = [
    'fpgibson','ericwortman','chris.prucha','adewale',
    '106682268171546695520'
    ]
  pp.pprint(base_graph(people))


if __name__ == '__main__':
	main()

